﻿@inject IDataCacheService _dataCacheService

<MIcon Small="Small" XLarge="XLarge" Large="Large" XSmall="XSmall" Color="@Color" Class="@Class">@(string.IsNullOrWhiteSpace(IconString) ? Type.ToIconString() : IconString)</MIcon>

@code {
    [Parameter]
    public IconType Type { get; set; }
    [Parameter]
    public string IconString { get; set; }
    [Parameter]
    public bool XLarge { get; set; }
    [Parameter]
    public bool Large { get; set; }
    [Parameter]
    public bool XSmall { get; set; }
    [Parameter]
    public bool Small { get; set; } = true;
    [Parameter]
    public string Class { get; set; } = "me-2";
    [Parameter]
    public string Color { get; set; } = "primary";
}
